﻿#region Usings

using System.Xml.XPath;

#endregion

namespace Kazkommertsbank.Framework.Model.OrderStatus
{
    public class OrderStatusOrder
    {
        private readonly string _xml;

        public OrderStatusOrder(XPathNavigator nav)
        {
            _xml = nav.OuterXml;
            ID = nav.GetAttribute("id", "");
            Amount = nav.GetAttribute("amount", "");
            Currency = nav.GetAttribute("currency", "");
        }

        public string ID { get; set; }
        public string Amount { get; set; }
        public string Currency { get; set; }

        public string ToXmlString()
        {
            return _xml;
        }
    }
}